# MySQL 数据库练习

import mysql.connector

# 数据库连接
mydb = mysql.connector.connect(
    host = "localhost", #数据库主机地址
    user = "root" , # 数据库用户名
    passwd = "root", # 数据库密码
)

# mycursor = mydb.cursor()
#
# mycursor.execute("CREATE TABLE sites (name VARCHAR(255), url VARCHAR(255))")


# for x in mycursor:
#     print(x)

# mycursor.execute("CREATE DATABASE runoob_db")

# print(mydb)